package homework.api.day05;

import java.io.File;
import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        //\、/、:、*、?、"、<、>、|

        String regex = "\\.*";
        Scanner scan = new Scanner(System.in);
        while(true){
            System.out.println("请输入您要创建的目录名：");
            String name = scan.nextLine();
            boolean flag = name.matches(regex);
            System.out.println(flag);

            /*File dir = new File(name);
            if(dir.exists()){
                System.out.println("已存在，请输入其他名字");
            }else{
                dir.mkdirs();
                System.out.println("已创建成功");
                break;
            }*/
        }
    }
}
